#ifndef MAIN_WINDOW_HPP
#define MAIN_WINDOW_HPP

#include <QtGui>
#include <QtCore>
#include <QObject>
#include "contact.hpp"

class mainWindow : public QWidget
{
	Q_OBJECT
private:
	QPushButton *addUser;
	QListWidget *contacts;
	QVBoxLayout *layout;

	QLineEdit *h_name;
	//QLineEdit *n_name;

public:
	mainWindow(QWidget *parent = 0, QString yn = "unknown");
	int 		fd;
	std::string 	h;
	QString 	remoteNick;
	QString 	hostNick;
	QLabel	    	*uName;
	void eConnections();

public slots:
	void addContact();
	void addToList();
	void chattingWindow(QListWidgetItem*);
signals:
	void incomingConnection();
};
#endif //MAIN_WINDOW_HPP
